/**
****************************************************************************
 * @file  dev_switch.h
 * @brief SWITCH驱动函数(LED, BEEP, power switch)
 * @author Moon
 * @version V1.0.0
 * @date 2021/12/23
****************************************************************************
 */
#ifndef _DEV_SWITCH_H
#define _DEV_SWITCH_H

#include "common_f4.h"
/* Public defines -----------------------------------------------------------*/
/* Public Struct ------------------------------------------------------------*/
/* Public enum --------------------------------------------------------------*/
typedef enum {
    LED_RUN = 0,
    LED_STATE = 1,
    BUZZER = 2,
    LIMIT1,
    LIMIT2,
    HEAT1,
    HEAT2,
    HEAT3,
	//TEST,
    SWITCH_NUM,
} SWITCH_TYPE;

//#ifndef BOOT_PROJECT
//typedef enum {
//    SYS_MODE_WORK = 1,
//    SYS_MODE_UPDATA,
//    SYS_MODE_DEBUG,
//    SYS_MODE_NUM,
//} WOKE_MODE_e;
//#endif

typedef enum
{
    SWITCH_ON = 0, //开
    SWITCH_OFF,    //关
    SWITCH_TOGGLE, //状态翻转

    SWITCH_ST_NUM,
}SWITCH_ST;

/* Public Variable ---------------------------------------------------------*/
//Pointer
//Array
//Const
/* Pubilc function prototypes ----------------------------------------------*/
void SWITCH_init(void);
void SWITCH_ON_OFF(SWITCH_TYPE type, SWITCH_ST st);

#endif // _DEV_SWITCH_H
